package com.zzyl.service;

import com.aliyun.iot20180120.models.DeleteDeviceRequest;
import com.aliyun.iot20180120.models.QueryDeviceDetailRequest;
import com.aliyun.iot20180120.models.QueryDevicePropertyStatusRequest;
import com.aliyun.iot20180120.models.QueryThingModelPublishedRequest;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;

import java.util.List;

/**
 * @Description DeviceService
 * @Author zhengyuan&junjun
 * @Date 2024-10-30
 */

public interface DeviceService {
    void syncProductList();

    List<ProductVo> allProduct();

    void registerDevice(DeviceDto deviceDto);


    PageResponse<DeviceVo> pageQueryDevice(DevicePageQueryDto devicePageQueryDto);

    DeviceVo queryDeviceDetail(QueryDeviceDetailRequest request);

    ResponseResult queryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);

    ResponseResult queryThingModelPublished(QueryThingModelPublishedRequest request);

    Object batchUpdateDevice(DeviceDto dto);

    Object deleteDevice(DeleteDeviceRequest deleteDeviceRequest);
}
